﻿<%@ Page Title="Sent Messages" Language="C#" MasterPageFile="~/Alumini/ALM-Menu.master" AutoEventWireup="true" CodeFile="ALM-SentMessages.aspx.cs" Inherits="SentMessages" %>

<asp:Content ID="Content1" ContentPlaceHolderID="headSubMaster" Runat="Server">
<link rel="stylesheet" type="text/css" href="css/communication.css" />
<script type="text/javascript">
    function Redirect(MsgID, CommID) {
        window.location = 'ALM-ViewMessage.aspx?MessageID=' + MsgID + '&mBox=' + CommID;
    }
</script>
<style>

.sent-field1 label {
    background: none repeat scroll 0 0 #FFFFFF;
    border-right: 1px solid #000000;
    color: #000000;
    float: left;
    font-weight: bold;
    height: 65px;
    margin-bottom: 20px;
    padding:50px 0 5px 0;
    text-align: center;
    width: 880px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder_SubMaster" Runat="Server">

<div id="page"><!--content page-->
<div class="left-btn">
<p><input type="button" value="compose" onclick="page('ALM-Compose.aspx');" /></p>
<p><input type="button" value="inbox" onclick="page('ALM-InboxMessageList.aspx');" /></p>
<p class="active"><input type="button" value="sent"  onclick="page('ALM-SentMessages.aspx');"/></p>
    
</div>

<div class="right">
<div class="sent-field">
<label><asp:LinkButton ID="lnkTo" runat="server" onclick="lnkTo_Click">To</asp:LinkButton></label>
<label class="subject"><asp:LinkButton ID="lnkSubject" runat="server" 
        onclick="lnkSubject_Click" >subject</asp:LinkButton></label>
<label style="width:140px;"><asp:LinkButton ID="lnkDate" runat="server" onclick="lnkDate_Click"  >date</asp:LinkButton></label>
<label></label>
<label></label>
<label></label>
</div>


<asp:ListView ID="lvSentMessages" runat="server" ItemPlaceholderID="itemPlaceholder"  onitemcommand="gvNewFiles_ItemCommand" >
    <LayoutTemplate>
<div runat="server" id="itemPlaceholder" />

</LayoutTemplate>
    <ItemTemplate>
     
<div class="sent-detail">
<label onclick='Redirect(<%# Eval("MessageID") %>,<%# Eval("CommunicationID") %>);'><%#Eval("UserName") %></label>

<label class="subject" onclick='Redirect(<%# Eval("MessageID") %>,<%# Eval("CommunicationID") %>);'><%#Eval("Subject") %></label>

<label  style="width:140px;"  onclick='Redirect(<%# Eval("MessageID") %>,<%# Eval("CommunicationID") %>);'><%#Eval("SentDate") %></label>

<label onclick='<%# Eval("MessageID","ALM-RFCompose.aspx?MessageID={0}&Action=Reply") %>;'>
<a href="<%# Eval("MessageID","ALM-RFCompose.aspx?MessageID={0}&Action=Reply") %>"> Reply</a></label>

<label onclick='<%# Eval("MessageID","ALM-RFCompose.aspx?MessageID={0}&Action=Forward") %>;'>
<a href="<%# Eval("MessageID","ALM-RFCompose.aspx?MessageID={0}&Action=Forward") %>"> Forward</a></label>

<label><asp:LinkButton runat="server" ID="lbtnFiles" Text='Delete' CommandArgument='<%#Eval("MessageID") %>'
CommandName="deleteFile"></asp:LinkButton></label>
</div>
    </ItemTemplate> 
    <AlternatingItemTemplate>
    <div class="sent-detailalternate">
<label onclick='Redirect(<%# Eval("MessageID") %>,<%# Eval("CommunicationID") %>);'><%#Eval("UserName") %></label>

<label class="subject" onclick='Redirect(<%# Eval("MessageID") %>,<%# Eval("CommunicationID") %>);'><%#Eval("Subject") %></label>

<label  style="width:140px;"  onclick='Redirect(<%# Eval("MessageID") %>,<%# Eval("CommunicationID") %>);'><%#Eval("SentDate") %></label>

<label onclick='<%# Eval("MessageID","ALM-RFCompose.aspx?MessageID={0}&Action=Reply") %>;'>
<a href="<%# Eval("MessageID","ALM-RFCompose.aspx?MessageID={0}&Action=Reply") %>"> Reply</a></label>

<label onclick='<%# Eval("MessageID","ALM-RFCompose.aspx?MessageID={0}&Action=Forward") %>;'>
<a href="<%# Eval("MessageID","ALM-RFCompose.aspx?MessageID={0}&Action=Forward") %>"> Forward</a></label>

<label><asp:LinkButton runat="server" ID="lbtnFiles" Text='Delete' CommandArgument='<%#Eval("MessageID") %>'
CommandName="deleteFile"></asp:LinkButton></label>
</div>

    </AlternatingItemTemplate>
       <EmptyDataTemplate>
<div>
<div class="sent-field1">
<label> 
You have no sent messages.
</label>
</div>
 

</div>
</EmptyDataTemplate>
</asp:ListView>

<%--<div class="sent-detail">
<label>devesh</label>
<label class="subject">my first message</label>
<label>22-aug-2012</label>
<label>reply</label>
<label>forward</label>
</div>
<div class="sent-detail">
<label>devesh</label>
<label class="subject">my first message</label>
<label>22-aug-2012</label>
<label>reply</label>
<label>forward</label>
</div>
<div class="sent-detail">
<label>devesh</label>
<label class="subject">my first message</label>
<label>22-aug-2012</label>
<label>reply</label>
<label>forward</label>
</div>--%>

</div>

</div><!-- content page close-->
</asp:Content>

